import request from '../utils/request'

export const login = (userDTO) => {
	return request({
		url: '/login',
		method: 'POST',
		data: userDTO,
	})
}

export const logout = (token) => {
	return request({
		url: `/sessions/${token}`,
		method: 'DELETE',
	})
}
